<!--
 * @Description: 统计
 * @Author: Huang Junjie
 * @Date: 2021-10-19 15:04:01
 * @LastEditTime: 2021-10-21 01:51:16
 * @LastEditors: Huang Junjie
-->
<template>
  <div class="content-card">
    <!-- 变电所亭统计 -->
    <div class="inner-content-card" style="margin-right: 10px">
      <!-- 标题 -->
      <div class="title">
        变电所亭统计
        <!-- <i class="el-icon-more" /> -->
      </div>
      <!-- 标题 -->

      <div class="progress-div">
        <div class="item">
          <el-progress
            class="progress-style"
            type="circle"
            :stroke-width="12"
            :percentage="statistics.suoTing01"
            status="text"
          >
            <div class="text-one">分区所</div>
            <div class="text-two">
              <span class="num">0</span>
            </div>
          </el-progress>
        </div>
        <div class="item">
          <el-progress
            class="progress-style"
            type="circle"
            :stroke-width="12"
            :percentage="statistics.suoTing02"
            status="text"
          >
            <div class="text-one">AT所</div>
            <div class="text-two">
              <span class="num">0</span>
            </div>
          </el-progress>
        </div>
        <div class="item">
          <el-progress
            class="progress-style"
            type="circle"
            :stroke-width="12"
            :percentage="statistics.suoTing03"
            status="text"
          >
            <div class="text-one">开闭所</div>
            <div class="text-two">
              <span class="num">0</span>
            </div>
          </el-progress>
        </div>
        <div class="item">
          <el-progress
            class="progress-style"
            type="circle"
            :stroke-width="12"
            :percentage="statistics.suoTing04"
            status="text"
          >
            <div class="text-one">分相所</div>
            <div class="text-two">
              <span class="num">0</span>
            </div>
          </el-progress>
        </div>
      </div>
    </div>
    <!-- 变电所亭统计 -->

    <!-- 电力所亭统计 -->
    <div class="inner-content-card" style="margin-right: 10px">
      <!-- 标题 -->
      <div class="title">
        电力所亭统计
        <!-- <i class="el-icon-more" /> -->
      </div>
      <!-- 标题 -->

      <!-- 图表 -->
      <div class="chart-card-01">
        <div class="chart-card-num-div">
          <div class="chart-card-num">
            <div class="chart-card-title">变电所</div>
            <div class="num">0</div>
          </div>
          <div class="chart-card-num">
            <div class="num">0%</div>
          </div>
        </div>
        <div class="img-div">
          <img
            class="img"
            :src="require('@/assets/images/jjxt/data-center-home/statistics02.png')"
          >
        </div>
      </div>
      <div class="chart-card-01">
        <div class="chart-card-num-div">
          <div class="chart-card-num">
            <div class="chart-card-title">配电所</div>
            <div class="num">0</div>
          </div>
          <div class="chart-card-num">
            <div class="num">0%</div>
          </div>
        </div>
        <div class="img-div">
          <img
            class="img"
            :src="require('@/assets/images/jjxt/data-center-home/statistics02.png')"
          >
        </div>
      </div>
      <!-- 图表 -->
    </div>
    <!-- 电力所亭统计 -->

    <!-- 电力设备基础统计 -->
    <div class="inner-content-card">
      <!-- 标题 -->
      <div class="title">
        电力设备基础统计
        <!-- <i class="el-icon-more" /> -->
      </div>
      <!-- 标题 -->

      <!-- 图表 -->
      <div class="chart-card-div">
        <div class="chart-card-02">
          <div class="chart-card-num-div">
            <div class="chart-card-num">
              <div class="chart-card-title">站臂管辖数量</div>
              <span class="num">0</span>
            </div>
          </div>
          <div class="img-div">
            <img
              class="img"
              :src="require('@/assets/images/jjxt/data-center-home/statistics01.png')"
            >
          </div>
        </div>
        <div class="chart-card-02">
          <div class="chart-card-num-div">
            <div class="chart-card-num">
              <div class="chart-card-title">电力线路数量</div>
              <span class="num">0</span>
            </div>
          </div>
          <div class="img-div">
            <img
              class="img"
              :src="require('@/assets/images/jjxt/data-center-home/statistics01.png')"
            >
          </div>
        </div>
        <div class="chart-card-02">
          <div class="chart-card-num-div">
            <div class="chart-card-num">
              <div class="chart-card-title">关键设备数量</div>
              <span class="num">0</span>
            </div>
          </div>
          <div class="img-div">
            <img
              class="img"
              :src="require('@/assets/images/jjxt/data-center-home/statistics01.png')"
            >
          </div>
        </div>
        <div class="chart-card-02">
          <div class="chart-card-num-div">
            <div class="chart-card-num">
              <div class="chart-card-title">其他设备数量</div>
              <span class="num">0</span>
            </div>
          </div>
          <div class="img-div">
            <img
              class="img"
              :src="require('@/assets/images/jjxt/data-center-home/statistics01.png')"
            >
          </div>
        </div>
        <div class="chart-card-02">
          <div class="chart-card-num-div">
            <div class="chart-card-num">
              <div class="chart-card-title">照明设备数量</div>
              <span class="num">0</span>
            </div>
          </div>
          <div class="img-div">
            <img
              class="img"
              :src="require('@/assets/images/jjxt/data-center-home/statistics01.png')"
            >
          </div>
        </div>
        <div class="chart-card-02">
          <div class="chart-card-num-div">
            <div class="chart-card-num">
              <div class="chart-card-title">发电机、车数辆</div>
              <span class="num">0</span>
            </div>
          </div>
          <div class="img-div">
            <img
              class="img"
              :src="require('@/assets/images/jjxt/data-center-home/statistics01.png')"
            >
          </div>
        </div>
      </div>
      <!-- 图表 -->
    </div>
    <!-- 电力设备基础统计 -->
  </div>
</template>

<script>
export default {
  name: 'Statistics',
  data() {
    return {
      statistics: {
        suoTing01: 0,
        suoTing02: 0,
        suoTing03: 0,
        suoTing04: 0
      }
    };
  },
  mounted() {
    this.statistics = {
      suoTing01: 0,
      suoTing02: 0,
      suoTing03: 0,
      suoTing04: 0
    };
  }
};
</script>

<style lang="scss" scoped>
::v-deep .el-progress-circle {
  width: 120px !important;
  height: 120px !important;
}
.content-card {
  width: 1170px;
  display: flex;
  box-sizing: border-box;
  overflow: hidden;
  // border: 1px solid #ebebeb;
  .inner-content-card {
    width: 390px;
    height: 100%;
    border: 1px solid #ebebeb;
    .title {
      color: #666666;
      padding: 5px 0 5px 10px;
      font-weight: 600;
      border-bottom: 1px solid #ebebeb;
      .el-icon-more {
        color: #676767;
        float: right;
        margin-right: 10px;
      }
    }
    .progress-div {
      display: flex;
      flex-flow: row wrap;
      align-items: center;
      justify-content: center;
      .item {
        .progress-style {
          padding: 10px 20px;
          .text-one {
            font-family: SourceHanSansCN-Bold;
            font-size: 16px;
            font-weight: bold;
            color: #676767;
          }
          .text-two {
            font-weight: 600;
            font-family: SourceHanSansCN-Bold;
            font-size: 20px;
            line-height: 30px;
            .num {
              font-weight: 600;
              color: #676767;
              cursor: pointer;
            }
            .num:hover {
              font-weight: 600;
              color: #54B2FC;
              text-decoration: underline;
              cursor: pointer;
            }
          }
        }
      }
    }
    .chart-card-01 {
      margin: 10px;
      height: 130px;
      border-radius: 5px;
      border: 1px solid #ebebeb;
      .chart-card-num-div {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        .chart-card-num {
          padding: 0 60px;
          font-size: 25px;
          font-weight: 600;
          .chart-card-title {
            color: #676767;
            padding: 10px 0;
            font-size: 14px;
          }
          .num {
            color: #676767;
            cursor: pointer;
          }
          .num:hover {
            color: #54B2FC;
            text-decoration: underline;
            cursor: pointer;
          }
        }
      }
      .img-div {
        position: relative;
        height: 20px;
        margin: 30px;
        .img {
          position: absolute;
          left: 0;
          bottom: 0;
          width: 100%;
        }
      }
    }
    .chart-card-div {
      display: flex;
      flex-flow: row wrap;
      .chart-card-02 {
        margin: 0 auto;
        height: 100px;
        width: 170px;
        .chart-card-num-div {
          .chart-card-num {
            padding: 0 10px;
            font-size: 25px;
            font-weight: 600;
            .chart-card-title {
              color: #676767;
              padding: 10px 0;
              font-size: 14px;
            }
            .num {
              color: #676767;
              cursor: pointer;
            }
            .num:hover {
              color: #54B2FC;
              text-decoration: underline;
              cursor: pointer;
            }
          }
        }
        .img-div {
          position: relative;
          height: 20px;
          margin: 10px;
          .img {
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
          }
        }
      }
    }
  }
}
</style>
